<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
<title></title>
<link href="<%=path %>/images/style.css" rel="stylesheet" type="text/css" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />
 
        <script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
        <script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
        <script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
        <script language="javascript">
           var i=0;
           function kechengAll()
           {
               if(i==0)
               {
                   document.getElementById("indicator").style.display="block";
                   loginService.kechengTeaAll(callback);
                   i=1;
               }
               
           }
           function callback(data)
           {
               document.getElementById("indicator").style.display="none";
               DWRUtil.addOptions("kecheng_id",data,"id","name");
           }
           
           function check()
           {
               if(document.formAdd.kecheng_id.value==0)
               { 
                   alert("请选择课程");
                   return false;
               }
               return true;
           }
        </script>
        </head>
<body>

<!--main start -->

<div id="main">
  <jsp:include flush="true" page="/qiantai/inc/incTop2.jsp"></jsp:include>
  
  <!--left panel start -->
  <div id="left">
    <jsp:include flush="true" page="/qiantai/inc/incLeft.jsp"></jsp:include>
  </div>
  <!--left panel end --> 
  <!--right panel start -->
  <div id="right"> 
    <!--rightBotMain start -->
    
    <div class="contactMain"> 
      
      <!--best start --> 
      <!--rightBot start --> 
      <!--rightBot end --> 
      <!--best start -->
      <div id="best1">
        <h2><span>章节添加 </span></h2>
        <form action="<%=path %>/zhangjie?type=zhangjieAdd" name="formAdd" method="post">
          <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
            <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
              <td width="25%" bgcolor="#FFFFFF" align="right"> 章节名称： </td>
              <td width="75%" bgcolor="#FFFFFF" align="left"><input type="text" name="name" size="20"/></td>
            </tr>
            <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
              <td width="25%" bgcolor="#FFFFFF" align="right"> 章节课时： </td>
              <td width="75%" bgcolor="#FFFFFF" align="left"><input type="text" name="keshi" size="20"/></td>
            </tr>
            <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
              <td width="25%" bgcolor="#FFFFFF" align="right"> 课程名称： </td>
              <td width="75%" bgcolor="#FFFFFF" align="left"><table border="0">
                  <tr>
                  <td><select name="kecheng_id" id="kecheng_id" onclick="kechengAll()">
                      <option value="0">请选择课程</option>
                    </select></td>
                  <td><img id="indicator" src="<%=path %>/images/loading.gif" style="display:none"/></td>
                </tr>
                </table></td>
            </tr>
            <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
              <td width="25%" bgcolor="#FFFFFF" align="right">&nbsp;</td>
              <td width="75%" bgcolor="#FFFFFF" align="left"><input type="submit" value="提交" onclick="return check()"/>
                &nbsp;
                <input type="reset" value="重置"/>
                &nbsp; </td>
            </tr>
          </table>
        </form>
        <br class="spacer" />
      </div>
      <!--best end --> 
    </div>
    <!--rightBotMain end --> 
    <!--last panel start --> 
    <!--last panel end --> 
    <br class="spacer" />
  </div>
  
  <!--right panel end --> 
  <br class="spacer" />
</div>
<!--main end --> 
<!--footerMain start -->

<jsp:include flush="true" page="/qiantai/inc/incFoot.jsp"></jsp:include>

<!--footerMain end -->
</body>
</html>
 